package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * Created by jessy on 2015/8/25.
 */
@Entity
@Table(name = "t_house_demand_history")
public class Demand extends BaseModel{
    @Column(name = "user_id")
    private int userId;
    @Column(name = "demand_time")
    private String demandTime;
    /**
     * 需求类型（1--买 0--租）
     */
    @Column(name = "demand_type")
    private int demandType;
    @Column(name = "demand_state")
    private int demandState;
    /**
     * 房子类型（码表序列）
     */
    @Column(name = "demand_house_type")
    private String houseType;
    /**
     * 城市
     */
    @Column(name = "demand_house_city")
    private String houseCity;
    /**
     * 县区
     */
    @Column(name = "demand_house_county")
    private String houseCounty;
    /**
     * 镇
     */
    @Column(name = "demand_house_town")
    private String houseTown;
    @Column(name = "demand_house_price")
    private BigDecimal housePrice;
    /**
     * 地区
     */
    @Column(name = "demand_house_area")
    private String houseArea;
    @Column(name = "demand_accept_time")
    private String acceptTime;
    @Column(name = "demand_accept_result")
    private int acceptResult;

    @Transient
    private String username;
    @Transient
    private String houseTypeName;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getDemandTime() {
        return demandTime;
    }

    public void setDemandTime(String demandTime) {
        this.demandTime = demandTime;
    }

    public int getDemandType() {
        return demandType;
    }

    public void setDemandType(int demandType) {
        this.demandType = demandType;
    }

    public int getDemandState() {
        return demandState;
    }

    public void setDemandState(int demandState) {
        this.demandState = demandState;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getHouseCity() {
        return houseCity;
    }

    public void setHouseCity(String houseCity) {
        this.houseCity = houseCity;
    }

    public String getHouseCounty() {
        return houseCounty;
    }

    public void setHouseCounty(String houseCounty) {
        this.houseCounty = houseCounty;
    }

    public String getHouseTown() {
        return houseTown;
    }

    public void setHouseTown(String houseTown) {
        this.houseTown = houseTown;
    }

    public BigDecimal getHousePrice() {
        return housePrice;
    }

    public void setHousePrice(BigDecimal housePrice) {
        this.housePrice = housePrice;
    }

    public String getHouseArea() {
        return houseArea;
    }

    public void setHouseArea(String houseArea) {
        this.houseArea = houseArea;
    }

    public String getAcceptTime() {
        return acceptTime;
    }

    public void setAcceptTime(String acceptTime) {
        this.acceptTime = acceptTime;
    }

    public int getAcceptResult() {
        return acceptResult;
    }

    public void setAcceptResult(int acceptResult) {
        this.acceptResult = acceptResult;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getHouseTypeName() {
        return houseTypeName;
    }

    public void setHouseTypeName(String houseTypeName) {
        this.houseTypeName = houseTypeName;
    }
}
